package com.woniu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.User;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hyl
 * @since 2022-08-28
 */
public interface IUserService extends IService<User> {
    /*/**
     *@description 根据userid查询user
     *@params [userId]
     *@return_value com.woniu.entity.User
     *@author hyl
     *@date 2022/8/29
     */
    User getByUserId(Integer userId);

    /*/**
     *@description 多条件查询user
     *@params [user]
     *@return_value java.util.List<com.woniu.entity.User>
     *@author hyl
     *@date 2022/8/29
     */
    List<User> getByAnyUser(User user);

    /*/**
     *@description 多条件分页查询user
     *@params [p, pageSize, user]
     *@return_value com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.woniu.entity.User>
     *@author hyl
     *@date 2022/8/29
     */
    Page<User> getByAnyUserWithPage(Integer p, Integer pageSize, User user);

    /*/**
     *@description 根据项目id查询user
     *@params [proId]
     *@return_value java.util.List<com.woniu.entity.User>
     *@author hyl
     *@date 2022/8/29
     */
    List<User> getUserByProId(Integer proId);
}
